@echo off
title HOLIDAY-ANALYZE
set userPath=.\environment

REM package
rem call mvn clean install -Dmaven.test.skip=true

rem del file
rmdir HOLIDAY-ANALYZE /s /q

rem create README.txt
mkdir HOLIDAY-ANALYZE
mkdir HOLIDAY-ANALYZE\data
mkdir HOLIDAY-ANALYZE\conf

copy /y .\start.bat HOLIDAY-ANALYZE
copy /y .\reset-environment.bat HOLIDAY-ANALYZE
copy /y .\set-environment.bat HOLIDAY-ANALYZE
copy /y .\README.txt HOLIDAY-ANALYZE
xcopy /y .\src\main\resources\data\* HOLIDAY-ANALYZE\data\  /s
xcopy /y .\src\main\resources\application.yml HOLIDAY-ANALYZE\conf\  /s
xcopy /y .\target\*.jar  HOLIDAY-ANALYZE\ /s
xcopy /y .\environment  HOLIDAY-ANALYZE\environment /s /i

%userPath%\7z\7z  a HOLIDAY-ANALYZE\HOLIDAY-ANALYZE.zip HOLIDAY-ANALYZE
echo.
echo -------completed!--------
choice /t 2 /d y /n >nul